debian/bin/genorig.py: Defuse `export-subst'
authorIan Jackson <ian.jackson@eu.citrix.com>
Thu, 22 Feb 2018 18:11:39 +0000 (18:11 +0000)
committerHans van Kranenburg <hans@knorrie.org>
Thu, 22 Feb 2018 20:06:49 +0000 (21:06 +0100)
commit2c91d2dea774545b941c054c2d7a5c91df36c8e5
tree1acd14f4f6fde2f473b5abfb002a2c00a55200d4
parent1bec8a30954e277758f92e68c1fcca0bba1555ec
debian/bin/genorig.py: Defuse `export-subst'

The Xen upstream tree has .gitattributes which cause `git archive' to
change things in .gitarchive-info.  This is troublesome because it
means that tarballs generated by genorig are not identical to the git
trees.

Work around this by temporarily creating a .gitattributes which
disables export-subst.  We move aside any existing .gitattributes, so
that this works whether we are in a Debian packaging branch with
upstream files in, or an upstream branch, or a bare-packaging branch.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
debian/bin/genorig.py